home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / pcc / v04n12 / batch2.exe / NEWDATE.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-10-10  |  290 b   |  15 lines

  1. @ECHO OFF
  2. REM This is NEWDATE.BAT
  3. IF %1!==! GOTO OOPS
  4. IF NOT EXIST %1 GOTO NOTFOUND
  5. COPY /B %1 +,, > NUL
  6. ECHO %1 date and time updated.
  7. GOTO END
  8. :NOTFOUND
  9. ECHO %1 not found; try again.
  10. :OOPS
  11. ECHO Enter the file whose date 
  12. ECHO and time you want to update 
  13. ECHO after %0
  14. :END
  15.